﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Client.ServiceReference1;
using NotificationService;

namespace Client
{
    class Program
    {
        const string MY_ID = "client1";

        static void Main(string[] args)
        {
            Service1Client client = new Service1Client();

            while (true)
            {
                Console.WriteLine("Press enter to fire event");
                var res = Console.ReadLine();

                client.FireEvent(MY_ID, new TestEvent
                    {
                        ID = Guid.NewGuid().ToString(),
                        testField1Field = res
                    });
                
                Console.WriteLine("Event fired");                
            }

            // Always close the client.
            client.Close();
        }
    }
}
